package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 绩效
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_kpi")
public class Kpi implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 绩效ID
     */
    @TableId(value = "kpi_id", type = IdType.AUTO)
    private Integer kpiId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 详情
     */
    @TableField("remark")
    private String remark;

    /**
     * 类型[0.任务 1.值班]
     */
    @TableField("type")
    private Integer type;

    /**
     * 目标ID
     */
    @TableField("target_id")
    private Integer targetId;

    /**
     * 分数
     */
    @TableField("point")
    private Integer point;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Integer getKpiId() {
        return kpiId;
    }

    public void setKpiId(Integer kpiId) {
        this.kpiId = kpiId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Kpi{" +
        "kpiId=" + kpiId +
        ", userId=" + userId +
        ", username=" + username +
        ", title=" + title +
        ", remark=" + remark +
        ", type=" + type +
        ", targetId=" + targetId +
        ", point=" + point +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
